package com.zcf.controller;


import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zcf.common.json.Body;
import com.zcf.pojo.PlayBack;
import com.zcf.pojo.User;
import com.zcf.service.PlayBackServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ZhaoQi
 * @since 2019-03-18
 */
@Controller
@RequestMapping("/playBack")
public class PlayBackController {
	
	@Autowired
	PlayBackServiceImpl psi;
	/**
	 * 获取战局回放
	 * @param back
	 * @return
	 */
	@PostMapping("getplayback")
	@ResponseBody
	private Object getplayback(PlayBack back){
		return psi.getplayback(back);
	}
	
	/**
	 * 
	 * @param back
	 * @return
	 */
	@PostMapping("getplaynum")
	@ResponseBody
	private Body getplaynum(PlayBack back){
		return psi.getplaynum(back);
	}
	
	
}

